package net.lab1024.sa.admin.module.business.yct.yctofficial.dao;

import java.util.List;
import net.lab1024.sa.admin.module.business.yct.yctofficial.domain.entity.YctOfficialInfoClassEntity;
import net.lab1024.sa.admin.module.business.yct.yctofficial.domain.form.YctOfficialInfoClassQueryForm;
import net.lab1024.sa.admin.module.business.yct.yctofficial.domain.vo.YctOfficialInfoClassVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

/**
 * 易齿通官网类目 Dao
 *
 * @Author zahngben
 * @Date 2024-09-23 10:00:32
 * @Copyright 01
 */

@Mapper
@Component
public interface YctOfficialInfoClassDao extends BaseMapper<YctOfficialInfoClassEntity> {

    /**
     * 分页 查询
     *
     * @param page
     * @param queryForm
     * @return
     */
    List<YctOfficialInfoClassVO> queryPage(Page page, @Param("queryForm") YctOfficialInfoClassQueryForm queryForm);

    /**
     * 更新删除状态
     */
    long updateDeleted(@Param("classId")Long classId,@Param("deletedFlag")boolean deletedFlag);

    /**
     * 批量更新删除状态
     */
    void batchUpdateDeleted(@Param("idList")List<Long> idList,@Param("deletedFlag")boolean deletedFlag);

    List<YctOfficialInfoClassVO> queryYctOfficialInfoClassTree(@Param("queryForm") YctOfficialInfoClassQueryForm queryForm);
}
